import http from "../utils/http";

const tscode = {
    tscode: "sh.601011"
};

/**
 *  投资价值评分
 * @returns {*|Promise<any>}
 */
export const stockScore = (tscode = '')=>{
    return http.post('/v1/vipStockInfoController/stockScore',{tscode});
};

/**
 * 宏观面
 * @returns {*|Promise|Promise<any>}
 */
export const macroInfo = (tscode = '')=>{
    return http.post('/v1/vipStockInfoController/macroInfo',{tscode});
};

/**
 * 最近5年总资产
 * @returns {*|Promise<any>}
 */
export const totalProperty = (tscode = '') => {
    return http.post('/v1/vipStockInfoController/totalProperty', {tscode});
};


/**
 * 债务风险
 * @returns {*|Promise|Promise<any>}
 */
export const debtRisk = (tscode = '') => {
    return http.post('/v1/vipStockInfoController/debtRisk', {tscode});
};


/**
 * 竞争优势
 * @returns {*|Promise|Promise<any>}
 */
export const contend = (tscode = '') => {
    return http.post('/v1/vipStockInfoController/contend', {tscode})
};

/**
 * 产品竞争力
 * @returns {*|Promise|Promise<any>}
 */
export const productContend = (tscode = '') => {
    return http.post('/v1/vipStockInfoController/productContend', {tscode});
};

/**
 * 维持竞争力的成本
 * @returns {*|Promise|Promise<any>}
 */
export const powerCost = (tscode = '') => {
    return http.post('/v1/vipStockInfoController/powerCost', {tscode});
};


/**
 * 专业专注度
 * @returns {*|Promise|Promise<any>}
 */
export const focusMain = (tscode = '') => {
    return http.post('/v1/vipStockInfoController/focusMain', {tscode});
};

/**
 * 业绩暴雷
 * @returns {*|Promise|Promise<any>}
 */
export const performanceRisk = (tscode = '') => {
    return http.post('/v1/vipStockInfoController/performanceRisk', {tscode});
};

/**
 * 行业地位及增长性
 * @returns {*|Promise|Promise<any>}
 */
export const industryPosition = (tscode = '') => {
    return http.post('/v1/vipStockInfoController/industryPosition', {tscode});
};

/**
 * 产品竞争力及风险
 * @returns {*|Promise<any>}
 */
export const productPower = (tscode = '') => {
    return http.post('/v1/vipStockInfoController/productPower', {tscode})
};

/**
 * 成本管控能力
 * @returns {*|Promise<any>}
 */
export const costManage = (tscode = '') => {
    return http.post('/v1/vipStockInfoController/costManage', {tscode})
};

/**
 * 主业盈利能力及质量
 * @returns {*|Promise<any>}
 */
export const mainProductPower = (tscode = '') => {
    return http.post('/v1/vipStockInfoController/mainProductPower', {tscode});
};

/**
 * 整体盈利及持续性
 * @returns {*|Promise<any>}
 */
export const mainIncomeContinue = (tscode = '')=>{
   return http.post('/v1/vipStockInfoController/mainIncomeContinue',{tscode})
};

/**
 * 公司发展潜力
 * @returns {*|Promise<any>}
 */
export const potential = (tscode = '') => {
    return http.post('/v1/vipStockInfoController/potential', {tscode})
};

/**
 * 公司分红慷慨度
 * @returns {*|Promise<any>}
 */
export const bonus = (tscode = '') => {
    return http.post('/v1/vipStockInfoController/bonus', {tscode})
};

